package request

type TmallServicecenterWorkerDeleteRequest struct {
	/*
	   工人姓名     */
	Name *string `json:"name,omitempty" required:"false" `
	/*
	   工人手机号     */
	Phone *int64 `json:"phone,omitempty" required:"false" `
	/*
	   业务类型,电器预约安装业务填appliance_install     */
	BizType *string `json:"biz_type,omitempty" required:"false" `
}

func (s *TmallServicecenterWorkerDeleteRequest) SetName(v string) *TmallServicecenterWorkerDeleteRequest {
	s.Name = &v
	return s
}
func (s *TmallServicecenterWorkerDeleteRequest) SetPhone(v int64) *TmallServicecenterWorkerDeleteRequest {
	s.Phone = &v
	return s
}
func (s *TmallServicecenterWorkerDeleteRequest) SetBizType(v string) *TmallServicecenterWorkerDeleteRequest {
	s.BizType = &v
	return s
}

func (req *TmallServicecenterWorkerDeleteRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.Name != nil {
		paramMap["name"] = *req.Name
	}
	if req.Phone != nil {
		paramMap["phone"] = *req.Phone
	}
	if req.BizType != nil {
		paramMap["biz_type"] = *req.BizType
	}
	return paramMap
}

func (req *TmallServicecenterWorkerDeleteRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
